const componentBehavior = require('../../../js/common/ComponentBehavior')

Component({
  properties: {
    data: {
      value: null,
      type: Object
    },
  },
  data: {
    date: null,
    endDate: null,
  },
  behaviors: [componentBehavior],
  methods: {
    bindDateChange: function (e) {
      let value = e.detail.value
      this.setData({
        date: value
      })

      let dataId = this.data.data.Id
      this.triggerEvent("dateChangeCallBack", {
        dataId: dataId,
        value: value
      });
    },
  }
})
